package com.zzxy.spring5.po;

import javafx.beans.property.Property;

import javax.sql.rowset.CachedRowSet;
import java.lang.reflect.MalformedParameterizedTypeException;
import java.util.List;
import java.util.Map;
import java.util.Properties;

public class Student {
    private String no;
    private Integer age;

    private String username;
    private String province;
    private String city;
    private Address address;

    public Student() {

    }

    public Address getAddress(){
        return address;
    }
    public void setAddress(Address address){
        this.address=address;
    }
    private List<String> cars;

    public List<String> getCars() {
        return cars;
    }

    public void setCars(List<String> cars) {
        this.cars = cars;
    }

    public Map<String,String> infos;

    public Map<String, String> getInfos() {
        return infos;
    }

    public void setInfos(Map<String, String> infos) {
        this.infos = infos;
    }

    private Properties properties;
    public Properties getProperties(){
        return properties;
    }
    public void setProperties(Properties properties){
        this.properties=properties;
    }
    private String[] members;

    public void setMembers(String[] members) {
        this.members = members;
    }

    public String[] getMembers() {
        return members;
    }

    public String toString() {
        return "Student{" +
                "username='" + username + '\'' +
                ",no='" + no + '\'' +
                ",age=" + age +
                ",address="+address+
                ",cars="+cars+
                ",infos="+infos+
                ",properties="+properties+
                ",members="+members+
                '}';
    }
    public Student(String username,String no){
        this.username=username;
        this.no=no;
    }
    public Student(String username,Integer age){
        this.username=username;
        this.age=age;
    }
//    public Student(String username,String no,Integer age){
//        this.username=username;
//        this.age=age;
//        this.no=no;
//    }

    public String getUsername(){
        return username;
    }
    public void setUsername(String username){
        this.username=username;
    }
    public Integer getAge(){
        return age;
    }
    public void setAge(Integer age){
        this.age=age;
    }
    public String getNo(){
        return no;
    }
    public void setNo(String no){
        this.no=no;
    }


    public void setInfos(String infos) {
    }

}